-
Notifications
You must be signed in to change notification settings - Fork 2.6k
chore: renaming deserialize_document_store_in_init_params_inplace
#8379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
deserialize_document_store_in_init_params_inplaceuti, it works with any other component
Pull Request Test Coverage Report for Build 12809215757Details
💛 - Coveralls |
deserialize_document_store_in_init_params_inplaceuti, it works with any other componentdeserialize_document_store_in_init_params_inplace, it works with any other component
deserialize_document_store_in_init_params_inplace, it works with any other componentrenaming deserialize_document_store_in_init_params_inplace
releasenotes/notes/rename-deserialize-in-place-function-f92bf2e801dbd940.yaml
Outdated
Show resolved
Hide resolved
vblagoje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let one minor comment to minimize downstream disruption. @anakin87 is also good in spotting problems this change can cause.
| "serialize_type", | ||
| "deserialize_type", | ||
| "deserialize_document_store_in_init_params_inplace", | ||
| "deserialize_component_in_init_params_inplace", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can create an alias above from here:
deserialize_document_store_in_init_params_inplace = deserialize_component_in_init_params_inplace
and then export both to minimize havoc this will create in downstream deps
|
NOTE: this is an old PR, I just updated it to see if it has any conflicts - note 100% sure if it still make sense, also OK if we just close it |
anakin87
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this utility function can work also for components, I would be happy to rename it.
But a Document Store is not a component, so I would choose a clearer name:
deserialize_document_store_or_component_in_init_params_inplace is very long, but I would opt for something similar.
If this function can work with components, let's also add a test to verify/show this behavior.
|
I will close this for now, we can look into it later if necessary |
Proposed Changes:
deserialize_document_store_in_init_params_inplaceutil, since it can also work with any other componentHow did you test it?
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.